package com.rd.student.ruanjian.class3.gaochenxi.NumberFour;
import java.util.ArrayList;
import java.util.Random;
public class NumberFour {
      public static void main(String[] args) {
            Random random=new Random();
            ArrayList list=new ArrayList();
            ArrayList list1=new ArrayList();
            int min=0;
            int max=100;
            for(int i=0;i<10;i++){
                  int result=min+random.nextInt(max-min);
                  list.add(result);
            }

            for(int i=0;i<list1.size();i++){
                  System.out.print(list1.get(i)+" ");
            }
            //把list当中的元素，全部转移到list1当中
            list1.addAll(list);

            System.out.println("=====list1=====");
            for(int i=0;i<list1.size();i++){
                  System.out.print(list1.get(i)+" ");
            }

            System.out.println();
            System.out.println("======list=====");
            System.out.println(list);
      }
}
